<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/完整移动动画.js"></script>
    <script>
        window.addEventListener('load', function() {
            var div = document.querySelector('div:first-child');
            move(div, 500, aa);
            function aa() {
                console.log(119);
            }
            window.addEventListener("click", function() {
                console.log(11);
            });
        });
    </script>
    <style>
        div:first-child {
            position: absolute;
            width: 100px;
            height: 100px;
            background-color: red;
            margin-top: 20px;
        }
        div:last-child {
            width: 100px;
            height: 100px;
            margin-top: 20px;
            background-color: yellow;
        }
        span {
            display: inline-block;
            background-color: blue;
            transform: translate(100px, 100px);
        }
    </style>
</head>
<body>
    <div>

    </div>
    <div>

    </div>
    <span>
        dwdwdw
    </span>
</body>
</html>